# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ovos-skills-manager
pkgver=0.0.1
pkgrel=2
pkgdesc="Open Voice OS skill manager"
url="https://github.com/OpenVoiceOS/ovos_skill_manager"
arch="noarch"
license="Apache-2.0"
depends="
	ovos-skill-installer
	py3-beautifulsoup4
	py3-ovos-utils
	py3-pako
	py3-requests-cache
	py3-yaml
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/o/ovos-skills-manager/ovos-skills-manager-$pkgver.tar.gz"
# net required for tests
# tests disabled as they are broken and are in process of being rewritten upstream
options="!check"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a1e95576ccfb6401c42bc34959eb0f0f692fa2ef62fcd8ad9f10712af17f352c7efbc28c09062f8770926280b4e50e62afb9a7879b078fa36a6a15f75dac1cbd  ovos-skills-manager-0.0.1.tar.gz"
